package com.cdplife.ci.modular.system.service.impl;

import com.cdplife.ci.modular.system.model.Insurance;
import com.cdplife.ci.modular.system.dao.InsuranceMapper;
import com.cdplife.ci.modular.system.service.IInsuranceService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 保险公司表 服务实现类
 * </p>
 *
 * @author jers
 * @since 2018-11-07
 */
@Service
public class InsuranceServiceImpl extends ServiceImpl<InsuranceMapper, Insurance> implements IInsuranceService {
	
	@Override
    public List<Map<String, Object>> selectInsurance(String condition) {
        return this.baseMapper.selectInsurance(condition);
    }
	
	@Override
    public Insurance getByInsuranceCode(String insuranceCode) {
        return this.baseMapper.getByInsuranceCode(insuranceCode);
    }
	
	@Override
    public int setStatus(Integer userId, int status) {
        return this.baseMapper.setStatus(userId, status);
    }
	
}
